//
//  LookupController.h
//
//  Created by lee jory on 09-10-22.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LookupCell.h"
#import "MCControl.h"

@interface LookupController : MCViewController <UITabBarDelegate,UIActionSheetDelegate>{

	UIToolbar *pageBar;
	NSString *dataObjectName;
	NSMutableArray *queryFilter;
	int page;
	int totalPage;
	NSMutableArray *listData;
	NSMutableDictionary *listLayout;
	LookupCell *lookupCell;
	NSMutableDictionary *fieldData;
	MCControl *valueField;
	NSMutableDictionary *field;	
	NSMutableArray *labelBufferArray;
	NSMutableArray *valueBufferArray;
	NSMutableDictionary *datas;
	NSString *fieldName;
	NSMutableArray *lookupBackFills;
	
	BOOL     isJump2Page;
}

@property (nonatomic, retain) NSString *dataObjectName;
@property (nonatomic, retain) NSMutableArray *queryFilter;
@property (nonatomic) int page;
@property (nonatomic, retain) NSMutableArray *listData;
@property (nonatomic, retain) NSMutableDictionary *listLayout;
@property (nonatomic, retain) NSMutableDictionary *fieldData;
@property (nonatomic, retain) MCControl *valueField;
@property (nonatomic, retain) NSMutableDictionary *field;
@property (nonatomic, retain) NSMutableDictionary *datas;
@property (nonatomic, retain) NSString *fieldName;
@property (nonatomic, retain) NSMutableArray *lookupBackFills;


- (void)getDataFromServer;

-(BOOL)getNextData;
@end

